google.load('visualization', '1.0', {'packages':['corechart']});
      google.setOnLoadCallback(drawChart);
	  
      function drawChart(judete, numere, titlu,elem_id) {

        var data = new google.visualization.DataTable()
		var len = judete.length;
		var qq1 = judete[0]; var qq2 = judete[1]; var qq3 = judete[2]; var qq4 = judete[3]; var qq5 = judete[4];
		var nr1 = numere[0]; var nr2 = numere[1]; var nr3 = numere[2]; var nr4 = numere[3]; var nr5 = numere[4];
        data.addColumn('string', titlu);
        data.addColumn('number', 'Posturi');
        
		data.addRows([
			[qq1,nr1], [qq2,nr2], [qq3,nr3], [qq4,nr4],[qq5,nr5]
		]);
		
		
		if(elem_id=='chart_div1')
		{
			var options = {'title':titlu,
					   'backgroundColor':{fill:'transparent'},
                       'width':600,
                       'height':500,
					   'is3D':true};
			var chart = new google.visualization.PieChart(document.getElementById(elem_id));
       		chart.draw(data, options);		
		}
		else
		{
		
       		 var options = {'title':titlu,
					   'backgroundColor':{fill:'transparent'},
                       'width':300,
                       'height':200,
					   'is3D':true};
			var chart = new google.visualization.PieChart(document.getElementById(elem_id));
       		chart.draw(data, options);			   
		}
      }